<%@ page import="duylinh.VatLieu" %>


<div class="fieldcontain ${hasErrors(bean: vatLieuInstance, field: 'nhaCungUng', 'error')} ">
	<label for="nhaCungUng">
		<g:message code="vatLieu.nhaCungUng.label" default="Nha Cung Ung" />
		
	</label>
	<g:select id="nhaCungUng" name="nhaCungUng.id" from="${duylinh.NhaCungUng.list()}" optionKey="id" value="${vatLieuInstance?.nhaCungUng?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vatLieuInstance, field: 'chatLieu', 'error')} ">
	<label for="chatLieu">
		<g:message code="vatLieu.chatLieu.label" default="Chat Lieu" />
		
	</label>
	<g:textField name="chatLieu" value="${vatLieuInstance?.chatLieu}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vatLieuInstance, field: 'chieuDai', 'error')} required">
	<label for="chieuDai">
		<g:message code="vatLieu.chieuDai.label" default="Chieu Dai" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="chieuDai" value="${fieldValue(bean: vatLieuInstance, field: 'chieuDai')}" required=""/>

    <g:select name="doDayDonvi" from="${['mm','m']}">
    </g:select>
</div>

<div class="fieldcontain ${hasErrors(bean: vatLieuInstance, field: 'chieuRong', 'error')} required">
	<label for="chieuRong">
		<g:message code="vatLieu.chieuRong.label" default="Chieu Rong" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="chieuRong" value="${fieldValue(bean: vatLieuInstance, field: 'chieuRong')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: vatLieuInstance, field: 'dacDiem', 'error')} ">
	<label for="dacDiem">
		<g:message code="vatLieu.dacDiem.label" default="Dac Diem" />
		
	</label>
	<g:textField name="dacDiem" value="${vatLieuInstance?.dacDiem}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: vatLieuInstance, field: 'dangCuon', 'error')} ">
	<label for="dangCuon">
		<g:message code="vatLieu.dangCuon.label" default="Dang Cuon" />
		
	</label>
	<g:checkBox name="dangCuon" value="${vatLieuInstance?.dangCuon}" />
</div>

<div class="fieldcontain ${hasErrors(bean: vatLieuInstance, field: 'doDay', 'error')} required">
	<label for="doDay">
		<g:message code="vatLieu.doDay.label" default="Do Day" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="doDay" value="${fieldValue(bean: vatLieuInstance, field: 'doDay')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: vatLieuInstance, field: 'ten', 'error')} ">
	<label for="ten">
		<g:message code="vatLieu.ten.label" default="Ten" />
		
	</label>
	<g:textField name="ten" value="${vatLieuInstance?.ten}"/>
</div>

